package com.pmcc.cj.entity;

import com.pmcc.core.entity.UUIDEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 商品评价表
 * Created by tomas on 2020/9/5.
 */
@Entity
@Table(name = "cj_evaluation")
public class CjEvaluation extends UUIDEntity {
    @Column(name = "commodity_id")
    private String commodityId;//商品id
    @Column(name = "order_id")
    private String orderId;//订单id
    //评价星级  1：1星    2：2星    3：3星    4：4星    5：5星
    @Column(name = "star")
    private Integer star;
    @Column(name = "content",length = 1000)
    private String content;//评价内容
    @Column(name = "create_time")
    private Date createTime;//创建时间

    public String getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(String commodityId) {
        this.commodityId = commodityId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Integer getStar() {
        return star;
    }

    public void setStar(Integer star) {
        this.star = star;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
